package com.luoc.service.impl;

import com.luoc.service.Observer;
import com.luoc.service.Subject;

/**
 * @Author: luoc
 * @Date: 2019/9/24 15:57
 */
public class ConcreteObserver implements Observer {

    private int ObsState;

   // private ConcreteSubject subject;

   /* public ConcreteObserver(int obsState, Subject subject) {
        ObsState = obsState;
        this.subject = (ConcreteSubject) subject;
    }*/

   @Override
   public void update(){
       ObsState = 1;
   }


    public int getObsState() {
        return ObsState;
    }

    public void setObsState(int obsState) {
        ObsState = obsState;
    }
}
